Skip to content

Conversation

@apata
Copy link

@apata apata commented Jul 14, 2025

This draft PR is meant to show that setting props.path is not needed for special goals '404' and 'WP Form Completions' after plausible/analytics#5559. It is automatically synced to be the same as the resolved pathname of the event (if it is not set explicitly in the tracking request).

There's no particular hurry with merging this change. Anyone currently tracking these events with props.path set will keep seeing exactly what they're seeing right now.

There's a slight serialization difference between event.pathname and some values of event.props.path, so it might be wise to introduce these changes in a major version change.

@Dan0sz
Copy link
Collaborator

Dan0sz commented Jul 29, 2025

Thanks! When will the changes related to this PR go live?

@apata
Copy link
Author

apata commented Jul 30, 2025

Thanks! When will the changes related to this PR go live?

The PR plausible/analytics#5559 is live since about July 14th. The previous approach also still works, but in the docs, we now share the new approach: https://plausible.io/docs/error-pages-tracking-404#step-3-paste-this-piece-of-code-to-your-404-page-template

@Dan0sz
Copy link
Collaborator

Dan0sz commented Jul 30, 2025

Good to know. Thanks!

@Dan0sz Dan0sz closed this Oct 15, 2025
@Dan0sz Dan0sz reopened this Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants